<?php $this->_extends('_layouts/admin_layout'); ?>

<?php $this->_block('title'); ?> - 欢迎<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>
<table broder="0" width="100%">
    <tr><td>用户名</td><td>类型</td><td>修改</td><td>删除</td></tr>
    <?php foreach($users as $user){
        echo "<tr><td>";
        echo $user['username']."</td><td>";
        echo $user['rank']."</td>";
        echo "<td><a href=";
        echo url('admin/change', array('uid'=>$user['uid'])); 
        echo ">修改</a></td>";
        echo "<td><a href=";
        echo url('admin/userdel',array('uid'=>$user['uid']));
        echo ">删除</a></td></tr>";
    } ?>
</tbody>
</table>
<?php $this->_endblock('contents'); ?>